import Taro, { Component } from '@tarojs/taro'
import {View,Text,Image} from '@tarojs/components'
import './index.css'
import { AtInput,AtGrid, AtList, AtListItem,AtTabBar,AtButton } from 'taro-ui'
import app from '../../../main.js'
import {$navigateTo} from '../../../global'
export default class Index extends Component {
  config = {
    navigationBarTitleText: '挂号订单'
  }
  chakan=()=>{
    $navigateTo("../gerenbingli/index")
  }
  componentWillMount () { }

  componentDidMount () { }

  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }
  constructor () {
    super(...arguments)
    this.state = {
      value: '',
      current: 0

    }
  }
  handleChange (value) {
    this.setState({
      value,
      current: value
    })
  }
  
  render () {
    return (
    <View className='index'>
<View>
<AtList>
  <AtListItem title='医生姓名' extraText='李明 主治医生' />
  <AtListItem title='订单类型' extraText='挂号订单' />
  <AtListItem title='订单编号' extraText='134566987' />
  <AtListItem title='总价' extraText='¥300' />
  <AtListItem title='优惠金额' extraText='¥100' />
  <AtListItem title='实付金额' extraText='¥200' />
  <AtListItem title='就诊医院' extraText='广州人民医院' />
  <AtListItem title='就诊时间：' extraText='2018年12月10日'/>
</AtList>
</View>
<View className='btn-box '>
    <View className='s-box' onClick={this.chakan}><AtButton className='btn del-btn'>查看病情</AtButton></View>
    <View className='s-box'><AtButton className='btn save-btn'>取消订单</AtButton></View>
    </View>
    </View>
    )
    
  }
  

}

